#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QModelIndex>

class SettingsManager;

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow              *ui;
    SettingsManager             *settings;

signals:
    void started();

private slots:
    void on_MainWindow_started();
    void on_btnSaveSettings_pressed();
    void                        showLoginPage();
    void                        showMainPage();
    void                        saveSettings();
    void                        loadSettings();
    void                        showChatWindow(QModelIndex);
void                        showContactList(QModelIndex);
    void                        login();
    void                        logout();
};

#endif // MAINWINDOW_H
